home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / hardware / blit.inc < prev    next >
Text File  |  1998-06-24  |  1KB  |  76 lines

  1. def HSIZEBITS = 6;
  2. def VSIZEBITS = 16-HSIZEBITS;
  3. def HSIZEMASK = $3f;
  4. def VSIZEMASK = $3ff;
  5.  
  6. def MINBYTESPERROW = 128;
  7. def MAXBYTESPERROW = 4096;
  8.  
  9. def ABC = $80;
  10. def ABNC = $40;
  11. def ANBC = $20;
  12. def ANBNC = $10;
  13. def NABC = $8;
  14. def NABNC = $4;
  15. def NANBC = $2;
  16. def NANBNC = $1;
  17.  
  18. def A_OR_B = (ABC|ANBC|NABC|ABNC|ANBNC|NABNC);
  19. def A_OR_C = (ABC|NABC|ABNC|ANBC|NANBC|ANBNC);
  20. def A_XOR_C = (NABC|ABNC|NANBC|ANBNC);
  21. def A_TO_D = (ABC|ANBC|ABNC|ANBNC);
  22.  
  23. def BC0B_DEST = 8;
  24. def BC0B_SRCC = 9;
  25. def BC0B_SRCB = 10;
  26. def BC0B_SRCA = 11;
  27. def BC0F_DEST = $100;
  28. def BC0F_SRCC = $200;
  29. def BC0F_SRCB = $400;
  30. def BC0F_SRCA = $800;
  31.  
  32. def BC1F_DESC = 2;
  33.  
  34. def DEST = $100;
  35. def SRCC = $200;
  36. def SRCB = $400;
  37. def SRCA = $800;
  38.  
  39. def ASHIFTSHIFT = 12;
  40. def BSHIFTSHIFT = 12;
  41.  
  42. def LINEMODE = $1;
  43. def FILL_OR = $8;
  44. def FILL_XOR = $10;
  45. def FILL_CARRYIN = $4;
  46. def ONEDOT = $2;
  47. def OVFLAG = $20;
  48. def SIGNFLAG = $40;
  49. def BLITREVERSE = $2;
  50.  
  51. def SUD = $10;
  52. def SUL = $8;
  53. def AUL = $4;
  54.  
  55. def OCTANT8 = 24;
  56. def OCTANT7 = 4;
  57. def OCTANT6 = 12;
  58. def OCTANT5 = 28;
  59. def OCTANT4 = 20;
  60. def OCTANT3 = 8;
  61. def OCTANT2 = 0;
  62. def OCTANT1 = 16;
  63.  
  64. struct bltnode is
  65.   n:ulong;
  66.   function:ulong;
  67.   stat:byte;
  68.   blitsize:word;
  69.   beamsync:word;
  70.   cleanup:ulong;
  71. ;
  72.  
  73. def CLEANUP = $40;
  74. def CLEANME = CLEANUP;
  75.  
  76.